#ifndef __STDCRC16_H
#define __STDCRC16_H
#include <stdint.h>
#define SWAP16(data)  (uint16_t)((data>>8)|(data<<8))

uint16_t CRC16_CCITT(uint8_t *pdata, uint32_t length);
uint16_t CRC16_CCITT_FALSE(uint8_t *pdata, uint32_t length);
uint16_t CRC16_XMODEM(uint8_t *pdata, uint32_t length);
uint16_t CRC16_X25(uint8_t *pdata, uint32_t length);
uint16_t CRC16_MODBUS(uint8_t *pdata, uint32_t length);
uint16_t CRC16_IBM(uint8_t *pdata, uint32_t length);
uint16_t CRC16_MAXIM(uint8_t *pdata, uint32_t length);
uint16_t CRC16_USB(uint8_t *pdata, uint32_t length);

#endif
